<template>
  <div id="illegalPublicity" >
    <!--右上角按钮-->
    <div style='position:absolute;right:2%;top:10%;z-index: 99'>
      <div class='top_button_box'>
        <i style="margin-left:5px;color: white;font-size: 30px;opacity: 0.5;z-index: 98" @click="fullScreen" class="el-icon-full-screen"></i>
      </div>
    </div>


    <div id="entirety" style="background-image: url('/static/background/background.png');padding-bottom: 10px">
      <div style='display: flex;display: -webkit-flex;justify-content: center'>
        <div class="title_class" style='margin-top: 2vh;font-size: 13pt'>最新违规信息公示</div>
      </div>
      <div class='table_box'>
        <el-table
          :data="illegalInfoList"
          height="31.5vh"
          border
          :header-row-style="{height: '5vh'}"
          style="width:100%">
          <el-table-column prop="supplierName" label="云平台"  :show-overflow-tooltip="true" ></el-table-column>
          <el-table-column prop="time" label="处罚时间"  :show-overflow-tooltip="true" ></el-table-column>
          <el-table-column prop="credenceValue" label="当前信誉值"  :show-overflow-tooltip="true" ></el-table-column>
          <el-table-column label="处罚措施">
            <template slot-scope="scope">
              <span>{{getLevelInfo(scope.row.punishmentLevel).measureLabel}}</span>
            </template>
          </el-table-column>
          <el-table-column label="处罚等级">
            <template slot-scope="scope">
              <el-tag
                :type="getLevelInfo(scope.row.punishmentLevel).type"
                effect="dark">
                {{getLevelInfo(scope.row.punishmentLevel).levelLabel}}
              </el-tag>
            </template>
          </el-table-column>
          <el-table-column prop="remark" label="备注"  :show-overflow-tooltip="true" ></el-table-column>
        </el-table>
      </div>
      <div style='display: flex;display: -webkit-flex;justify-content: center'>
        <div class="title_class" style='font-size: 13pt'>云平台响应能力展示</div>
      </div>
      <div class='cardDiv'>
        <el-row :gutter='30'>
          <el-col :span=8>
            <el-card class='chart_card1'>
              <div style='display: flex;display: -webkit-flex;justify-content: center'>
                <div class="title_class" style='margin-top: 10px'>云商处罚次数占比</div>
              </div>
              <div style='display: flex;display: -webkit-flex;justify-content: center;align-items: center'>
                <div id='pieChart' style="height: 43vh;width:90%;margin-top: 1vh"> </div>
              </div>
            </el-card>
          </el-col>
          <el-col :span=8>
            <el-card class='chart_card2'>
              <div style='display: flex;display: -webkit-flex;justify-content: center'>
                <div class="title_class" style='margin-top: 10px'>各平台受到一级处罚次数</div>
              </div>
              <div style='width: 100%;padding:10px'>
                <div id='level1Chart' style="height: 20vh"> </div>
              </div>
            </el-card>
            <el-card class='chart_card2'>
              <div style='display: flex;display: -webkit-flex;justify-content: center'>
                <div class="title_class" style='margin-top: 10px'>各平台受到三级处罚次数</div>
              </div>
              <div id='level3Chart' style="height: 20vh"> </div>
            </el-card>
          </el-col>
          <el-col :span=8>
            <el-card class='chart_card2'>
              <div style='display: flex;display: -webkit-flex;justify-content: center'>
                <div class="title_class" style='margin-top: 10px'>各平台受到二级处罚次数</div>
              </div>
              <div id='level2Chart' style="height: 20vh"> </div>
            </el-card>
            <el-card class='chart_card2'>
              <div style='display: flex;display: -webkit-flex;justify-content: center'>
                <div class="title_class" style='margin-top: 10px'>各平台受到四级处罚次数</div>
              </div>
              <div id='level4Chart' style="height: 20vh"> </div>
            </el-card>
          </el-col>
        </el-row>

      </div>

    </div>

  </div>
</template>

<script src='./js/index.js'>
</script>
<style lang="scss">
@font-face {
  font-family: 'Alternate';
  //src: url('../../assets/iconfont/Alternate.ttf');
  font-style: normal;
  font-width: normal;
}

@import './css/illegalPublicity.scss';
</style>
